﻿namespace Chapter04.DesignMode2 {
    public class ChicagoPizzaStore : PizzaStroe {
        public override Pizza CreatePizza(string type) {
            return type switch {
                "cheese" => new ChicagoStyleCheesePizza(),
                "chicago" => new ChicagoStyleCheesePizza(),
                _ => throw new NotImplementedException(),
            };
        }
    }
}
